/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 18:13:27
 * @Description  : 用户前台页面路由
 */
import type { RouteRecordRaw } from 'vue-router'
const userRoutes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'home',
    redirect: '/explorer',
    component: () => import('@/views/User/Layout/index.vue'),
    children: [
      {
        path: '/explorer',
        name: 'explorer',
        meta: {
          title: '用户主页',
          auth: false
        },
        component: () => import('@/views/User/Explorer/index.vue')
      },

      {
        path: '/user/settings/:page?',
        name: 'userSettings',
        meta: {
          title: '用户设置',
          auth: false
        },
        component: () => import('@/views/User/Setting/index.vue')
      }
    ]
  }
]

export default userRoutes
